<template>
  <div>
    <h1>{{ msg }}</h1>
    <el-table
      :data="tableData"
      stripe
      style="width: 50%">
      <el-table-column
        prop="date"
        label="商品编号"
        width="180">
      </el-table-column>
      <el-table-column
        prop="name"
        label="商品名"
        width="180">
      </el-table-column>
      <el-table-column
        prop="address"
        label="单价">
      </el-table-column>
    </el-table>
    <el-pagination
  background
  layout="prev, pager, next"
  :total="1000">
</el-pagination>
  </div>
</template>

<script>
export default {
  data(){
    return{
      msg: "校园超市商品一览表",
      tableData: [{
            date: '1001',
            name: '乐事薯片（经典原味）',
            address: '7¥'
          }, {
            date: '1002',
            name: '旺仔牛奶250ml（罐装）',
            address: '5¥'
          }, {
            date: '1003',
            name: '农夫山泉550ml',
            address: '2¥'
          }, {
            date: '1004',
            name: '奥利奥（原味夹心）',
            address: '7¥'
          }]
    }
  }
}
</script>

<style scoped>
h1{
  color: #000000;
}
.el-table{
  margin: 0 auto;
}
</style>
